home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / sonido / sfxserve.000 / sfxserve / sfxserver-0.02 / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  2.0 KB  |  57 lines

  1. /*
  2.  * ---------------------------------------------------------------------------
  3.  * sfxserver/global.h
  4.  *
  5.  * Copyright by Terry Evans 1994
  6.  * tevans@cs.utah.edu, tevans@slc.unisys.com
  7.  * ---------------------------------------------------------------------------
  8.  *
  9.  * Redistribution and use in source and binary forms, with or without
  10.  * modification, are permitted provided that the following conditions are
  11.  * met: 1. Redistributions of source code must retain the above copyright
  12.  * notice, this list of conditions and the following disclaimer. 2.
  13.  * Redistributions in binary form must reproduce the above copyright notice,
  14.  * this list of conditions and the following disclaimer in the documentation
  15.  * and/or other materials provided with the distribution.
  16.  *
  17.  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
  18.  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  19.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  20.  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
  21.  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  22.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  23.  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  24.  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  25.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  26.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  27.  * SUCH DAMAGE.
  28.  * ---------------------------------------------------------------------------
  29.  */
  30.  
  31. #ifndef _GLOBAL_H
  32. #define _GLOBAL_H
  33.  
  34. /* Defines */
  35. #define MAX_CHANNELS 8
  36. #define MAX_SAMPLES 100
  37. #define MAX_BUFFSIZE 128
  38.  
  39. #define SAMPLE_RATE 11000
  40.  
  41. #define READY "ready\n"
  42.  
  43. #define SFX_SERVER "sfxserver"
  44.  
  45. /* 0002 = 2 fragments */
  46. /* 0007 = 2^b (2048) bytes/fragment */
  47. #define FRAG_SPEC 0x0002000b
  48.  
  49. #define FALSE 0
  50. #define TRUE 1
  51.  
  52. #define LEFT 0
  53. #define RIGHT 1
  54.  
  55.  
  56. #endif /* _GLOBAL_H */
  57.